package sk.isomi.minihr.mssql.entities;

public class Address {
	private int id;
	private String street;
	private String town;
	private String zip;
	
	public Address(String street, String town, String zip) {
		this.street = street;
		this.town = town;
		this.zip = zip;
	}

	public Address(int id, String street, String town, String zip) {
		this.id = id;
		this.street = street;
		this.town = town;
		this.zip = zip;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getTown() {
		return town;
	}

	public void setTown(String town) {
		this.town = town;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	@Override
	public String toString() {
		return String.format("Address [id=%s, street=%s, town=%s, zip=%s]", id,	street, town, zip);
	}	
}
